package com.webapp.dao;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.webapp.domain.entity.User_Gkal_Thumb;
@Repository("user_Gkal_ThumbDAO")
public class User_Gkal_ThumbDAO extends AbstractDAO<User_Gkal_Thumb>{

	/**
	 * 查询该用户所有点赞的记录
	 * @param id
	 * @return
	 */
	public List<String> findListByUser(long id){
		String hql = "select u.els_id from User_Gkal_Thumb u where u.user.id = :id";
		Query query = getSession().createQuery(hql).setLong("id", id);
		return query.list();
		
	}
}
